package com.itheima.jz;

public class Demo7 {
    public static void main(String[] args) {
        int[] arr1 ={11,22,33};
        int[] arr2 ={44,55,66};

        int[][] arr = {{11,22,33},{44,55,66}};
        System.out.println(arr[0][2]);
        //保存的是地址 可以让arr1 与arr2带入
        int[][] array = {arr1,arr2};
        System.out.println(array[0][2]);

        int max = arr[0][0];
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j <arr[i].length ; j++) {
                if(max < arr[i][j]){
                    max = arr[i][j];
                }
            }
        }
        System.out.println("最大值为:"+max);
    }
}
